Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 2 - 3D Viewer / 3D Viewer Reference
3D Viewer Routines / Getting Viewer Information


Q3ViewerGetButtonRect

You can use the Q3ViewerGetButtonRect function to get the rectangle that encloses a viewer button.

OSErr Q3ViewerGetButtonRect (
TQ3ViewerObject theViewer, 
unsigned long button, 
Rect *rect);
theViewer
A viewer object.
button
A button.
rect
On exit, the rectangle that enclosed the specified button in the specified viewer.
DESCRIPTION
The Q3ViewerGetButtonRect function returns, in the rect parameter, the rectangle that encloses the button specified by the button parameter in the viewer object specified by the theViewer parameter. You can use these constants to specify the button whose rectangle you want returned:

kQ3ViewerButtonCamera
kQ3ViewerButtonTruck
kQ3ViewerButtonOrbit
kQ3ViewerButtonZoom
kQ3ViewerButtonDolly

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996